package com.cw.controller;

import com.cw.service.MenuService;
import com.cw.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: MySyetem
 * @description: 菜单控制层
 * @author: 张庆恒
 * @create: 2021-08-28 19:05
 **/
@RestController
@RequestMapping("menu")
public class MenuController {
    @Resource
    private MenuService menuService;

    @GetMapping("getMenu")
    public R getMenu() {
        return menuService.getMenu();
    }
}
